package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SpecificMethodSpecificationDesignator {

    private int beginIndex;
    private int endIndex;
    private boolean instance;
    private boolean static_;
    private boolean constructor;
    private Identifier methodName;
    private DataTypeList dataTypeList;

    public SpecificMethodSpecificationDesignator(int beginIndex,
                                                 boolean instance,
                                                 boolean static_,
                                                 boolean constructor,
                                                 Identifier methodName,
                                                 DataTypeList dataTypeList) {
        this.beginIndex = beginIndex;
        this.endIndex = dataTypeList.getEndIndex();
        this.instance = instance;
        this.static_ = static_;
        this.constructor = constructor;
        this.methodName = methodName;
        this.dataTypeList = dataTypeList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isInstance() {
        return instance;
    }

    public boolean isStatic() {
        return static_;
    }

    public boolean isConstructor() {
        return constructor;
    }

    public Identifier getMethodName() {
        return methodName;
    }

    public DataTypeList getDataTypeList() {
        return dataTypeList;
    }

}
